package de.breitbeil.samsyncro.lib.domain.pim;

public class SVCard {
    
    private int id = -1;
    private String vcard;
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setVcard(String vcard) {
        this.vcard = vcard;
    }

    public String getVcard() {
        return vcard;
    }
    
    public byte[] getIdAsWord() {
        return new byte[]{ (byte) (id / 256), (byte) (id % 256) };
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        
        builder.append("Id:" +id+"\r\n"+vcard);
        
        return builder.toString();
    }
    
}
